#puts (5..10).inject {|sum,n| sum + n}

# total = (5..10).inject do |sum ,n|
#   sum + n
# end
# puts total

total = (5..10).inject(1) {|sum,n| sum + n}
p total